package do

import "time"

type SessionInfo struct {
	UserId       int64  `json:"user_id"`
	Platform     string `json:"platform"`
	SessionId    string `json:"session_id"`
	Phone        string `json:"phone"`
	Email        string `json:"email"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type UserBaseInfo struct {
	ID        int64     `json:"id"`
	Nickname  string    `json:"nickname"`
	LoginName string    `json:"login_name"`
	Verified  int       `json:"verified"`
	Avatar    string    `json:"avatar"`
	Slogan    string    `json:"slogan"`
	IsBlocked int       `json:"is_blocked"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (u *UserBaseInfo) GetIsBlocked() int {
	return u.IsBlocked
}
func (u *UserBaseInfo) GetID() int64 {
	return u.ID
}

type TokenInfo struct {
	AccessToken   string    `json:"access_token"`
	RefreshToken  string    `json:"refresh_token"`
	Duration      int64     `json:"duration"`
	SrvCreateTime time.Time `json:"srv_create_time"`
}
